package com.zlcode.product.service;

import com.zlcode.product.mapper.ProductMapper;
import com.zlcode.product.model.ProductInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class ProductService {

    @Autowired
    private ProductMapper productMapper;

    public ProductInfo selectProductById(Integer id) {
        log.info("接收到调用: id = " + id);
        return productMapper.selectProductById(id);
    }
}
